package com.ck.ck_back.pojo;

import java.util.List;
import java.util.Set;

public class User {

    private String openid;

    private String name;

    private String avatarurl;

    private String introduce;

    private Boolean identity;

    private Long registerTime;

    private String authorUsername;

    private String authorPwd;

    private Integer state;


    //  一个用户有多个作品
    private List<Production> productions;

//    一个用户可以产生多个历史消息
    private List<History> histories;

    public List<History> getHistories() {
        return histories;
    }

    public void setHistories(List<History> histories) {
        this.histories = histories;
    }

    public List<Production> getProductions() {
        return productions;
    }

    public void setProductions(List<Production> productions) {
        this.productions = productions;
    }


    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatarurl() {
        return avatarurl;
    }

    public void setAvatarurl(String avatarurl) {
        this.avatarurl = avatarurl;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Boolean getIdentity() {
        return identity;
    }

    public void setIdentity(Boolean identity) {
        this.identity = identity;
    }

    public Long getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Long registerTime) {
        this.registerTime = registerTime;
    }

    public String getAuthorUsername() {
        return authorUsername;
    }

    public void setAuthorUsername(String authorUsername) {
        this.authorUsername = authorUsername;
    }

    public String getAuthorPwd() {
        return authorPwd;
    }

    public void setAuthorPwd(String authorPwd) {
        this.authorPwd = authorPwd;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "User{" +
                "openid='" + openid + '\'' +
                ", name='" + name + '\'' +
                ", avatarurl='" + avatarurl + '\'' +
                ", introduce='" + introduce + '\'' +
                ", identity=" + identity +
                ", registerTime=" + registerTime +
                ", authorUsername='" + authorUsername + '\'' +
                ", authorPwd='" + authorPwd + '\'' +
                ", state=" + state +
                ", productions=" + productions +
                ", histories=" + histories +
                '}';
    }
}